﻿<%@ Page Title="" Theme = "DetailsView" Language="C#" MasterPageFile="~/Students.master" AutoEventWireup="true" CodeFile="SManager.aspx.cs" Inherits="SManager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:DetailsView 
     ID = "dtlManager"
     DataSourceID = "srcManager"
     SkinID ="Colorful"
     HeaderText = "管理员信息"
     AutoGenerateRows = "false"
     AllowPaging = "true"
     runat = "server" >
     <Fields>
        <asp:BoundField 
             DataField = "b_n"
             HeaderText= "宿舍楼" />
        <asp:BoundField 
             DataField = "msex"
             HeaderText = "性别" />
        <asp:BoundField 
             DataField = "mname"
             HeaderText = "姓名" />
        <asp:BoundField 
             DataField = "contactway"
             HeaderText = "联系方式" />
     </Fields>
     </asp:DetailsView>
<asp:SqlDataSource 
     ID = "srcManager"
     ConnectionString = "<%$ConnectionStrings:Dormitory %>"
     SelectCommand = "select * from managers" 
     runat = "server"></asp:SqlDataSource>
</asp:Content>

